<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">添加|编辑任务</div>
    <div class="main_soso">
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;"><span style="color:#229BC1;font-weight: bold;">任务信息</span> </th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
        <form action="/task/su_task.shtml" name="form01" method="post"   enctype="multipart/form-data">
         <input type="hidden" name="id" value="${task.id}" />
	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
	      <tbody>
	         <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" >任务标识：</td>
	              <td><input type="text" name="task.taskId" value="${task.taskId}" maxlength="32"/> </td>
             </tr>
             <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" >任务名称：</td>
	              <td> <input type="text" name="task.taskName" value="${task.taskName}" maxlength="32"/></td>
             </tr>
             <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" align="right">任务类型：</td>
	              <td> 
	                 <select name="task.taskType">
	                   <option value="normal" <c:if test="${task.taskType=='normal'}">selected="selected"</c:if>>常规任务</option>
	                   <option value="daily" <c:if test="${task.taskType=='daily'}">selected="selected"</c:if>>每日任务</option>
	                 </select>
	              </td>
             </tr>
             <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" >按钮文字：</td>
	              <td> <input type="text" name="task.taskBtnText" value="${task.taskBtnText}" maxlength="32"/></td>
             </tr>
              <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" >提交次数：</td>
	              <td> <input type="text" name="task.taskTime" value="${task.taskTime}" maxlength="32"/></td>
             </tr>
             <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" >完成积分：</td>
	              <td> <input type="text" name="task.taskInteger"  value="${task.taskInteger}" maxlength="32"/></td>
             </tr>
              <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" >任务描述：</td>
	              <td><textarea  name="task.taskDesc"  style="width: 400px;height: 90px;" >${task.taskDesc}</textarea></td>
             </tr>
             <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" >完成说明：</td>
	              <td> <input type="text" name="task.taskGuide" value="${task.taskGuide}" maxlength="64" style="width: 400px;"/></td>
             </tr>
             
         </tbody>
	    </table>
	      <div class="lapel" style="background:#FFFFFF;"><span><input name="" type="button" class="input01" value="保存" onclick="validate.submit();"/>&nbsp;
  <input name="" type="button" class="input01" value="返回列表" onclick="javascript:document.location='/product/search_product.shtml'"/></span></div>
	  </form>
  </div>
</div>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript" src="/scripts/xhr.js"></script>
<script type="text/javascript">

 //new WBFS({url:'/resource/to_resource.shtml',title:'选择文件',btn:"product.imgPath"});
 //new WBFS({url:'/resource/to_resource.shtml',title:'选择文件',btn:"product.soundDesc"});
 
validate.addvalidte(document.form01,{
        rules:{
           "task.taskId":{checkNull:true},
           "task.taskName":{checkNull:true},
           "task.taskBtnText":{checkNull:true},
           "task.taskTime":{checkNull:true,isNumber:true},
           "task.taskInteger":{checkNull:true,isNumber:true},
           "task.taskDesc":{checkNull:true,maxlength:64},
           "task.taskGuide":{checkNull:true,maxlength:64}
           },
	    message:{
	    }
	    });
 

</script>
